using System.Collections.Generic;

namespace LiveLinq.Internal
{
	static class EmptyEnumerable<TElement>
	{
		// the most useful and optimal for upcasters - array
		private static TElement[] _instance;

		public static IEnumerable<TElement> Instance
		{
			get
			{
				if (_instance == null)
				{
					_instance = new TElement[0];
				}
				return _instance;
			}
		}
	}
}